package com.example.studyllm.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 返回code枚举
 * @author wang
 *
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {
    // 成功
    SUCCESS(200, "SUCCESS"),


    // crud异常，4开头
    BAD_REQUEST(400, "BAD_REQUEST"),
    UN_AUTH(401, "UN_AUTH"),


    // crud异常，5开头
    // 默认错误
    ERROR(500, "ERROR"),
    DB_CONNECT_ERROR(501, "DB_CONNECT_ERROR")
    ;


    private Integer code;

    private String desc;




}
